]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix app event handling
authorColin Walters <walters@src.gnome.org>
Fri, 21 Nov 2008 20:45:35 +0000 (20:45 +0000)
committerColin Walters <walters@src.gnome.org>
Fri, 21 Nov 2008 20:45:35 +0000 (20:45 +0000)
We need to hook up to events on the group, and not set higher level
actors to be reactive.

svn path=/trunk/; revision=77

js/ui/appdisplay.js

index 87775cc4aabfc17b7029bb4b17bc9a20e296e2b5..72af3297c1cfe7c5109f986438d49fdd4d090c47 100644 (file)
@@ -36,13 +36,13 @@ AppDisplayItem.prototype = {
        this._group = new Clutter.Group({reactive: true,
                                         width: width,
                                         height: APPDISPLAY_HEIGHT});
-       this._bg = new Clutter.Rectangle({ color: APPDISPLAY_BACKGROUND_COLOR,
-                                          reactive: true, x: 0, y: 0 });
-       this._group.add_actor(this._bg);
-       this._bg.connect('button-press-event', function(group, e) {
+       this._group.connect('button-press-event', function(group, e) {
            me.emit('launch');
            return true;
        });
+       this._bg = new Clutter.Rectangle({ color: APPDISPLAY_BACKGROUND_COLOR,
+                                          x: 0, y: 0 });
+       this._group.add_actor(this._bg);
 
         this._icon = new Clutter.Texture({ width: 48, height: 48, x: 0, y: 0 });
        let gicon = appinfo.get_icon();